package com.acme;


public class Arrays {
	public static void main(String[] args) {
		int [] array;
		//TODO: define array consisting on 5 elements
		array = new int[5];
		
		for (int i=0; i<5; i++) {
			array[i] = i + 1;
		}
		System.out.println(array.length);
		try {
        	System.out.println(array[5]);
	    }
		catch (ArrayIndexOutOfBoundsException excep){
	    	System.out.println("Cannot access 6th element of array, that have 5 elements");
	    }
	}
}
